package iteratorPattern.demo;

import java.util.ArrayList;

/**
 * @author： pang-yun
 * @date： 2021-12-10 10:08
 * 功能目的 ：用于
 */

public class Client {
    public static void main(String[] args) {
        ArrayList<College> list = new ArrayList<>();

        ComputerCollege computerCollege = new ComputerCollege();
        InfoCollege infoCollege = new InfoCollege();

        list.add(computerCollege);
        list.add(infoCollege);

        OutPutImpl outPut = new OutPutImpl(list);
        outPut.printCollege();
    }
}
